package lib.wman.org.mvp.demo;

import android.content.Intent;
import android.view.View;

import lib.wman.org.mvp.R;
import lib.wman.org.mvp.presenter.ActivityPresenter;

public class MainActivity extends ActivityPresenter<MainDelegate> {


    @Override
    protected void bindEventListener() {
        mViewDelegate.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                startActivity(new Intent(MainActivity.this, SettingActivity.class));
            }
        }, R.id.text);
    }

    @Override
    protected Class getDelegateClass() {
        return MainDelegate.class;
    }
}
